using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.SYS
{
    [Table("sys_year_type"), DataContract]
    public class YearType
    {
        public YearType()
        {
            //this.IcmPrePurchaseRequest = new HashSet<ICM.PrePurchaseRequest>();
        }

        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DataMember, Display(Name = "YearTypeId", ResourceType = typeof(Resources.YearTypeResource))]
        [Column("year_type_seq")]
        public int YearTypeId { get; set; }

        [DataMember, Display(Name = "YearTypeName", ResourceType = typeof(Resources.YearTypeResource))]
        [Column("year_type_name")]
        public string YearTypeName { get; set; }

        [DataMember, Display(Name = "YearTypeDescr", ResourceType = typeof(Resources.YearTypeResource))]
        [Column("year_type_descr")]
        public string YearTypeDescr { get; set; }

        [DataMember, Display(Name = "MonthStart", ResourceType = typeof(Resources.YearTypeResource))]
        [Column("month_start")]
        public Nullable<int> MonthStart { get; set; }

        #region RecordStatus

        [DataMember, Display(Name = "RecordStatus", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
        [Column("record_status")]
        public string RecordStatus { get; set; }

        [DataMember, Display(Name = "CreatedBy", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
        [Column("created_by")]
        public Nullable<int> CreatedBy { get; set; }

        [DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
        [Column("created_when")]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

        [DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
        [Column("updated_by")]
        public Nullable<int> UpdatedBy { get; set; }

        [DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(SYS.Resources.RecordStatusResource))]
        [Column("updated_when")]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        #endregion

        //public virtual ICollection<ICM.PrePurchaseRequest> IcmPrePurchaseRequest { get; set; }

    }
}
